/*格式化时间函数*/
function formatDate(value){
				var date = new Date(value);
		       	var year  = date.getFullYear();
		       	var month = date.getMonth()+1;
		       	var day = date.getDay();
		       	var hour = date.getHours();
		       	var minutes = date.getMinutes();
		       	var second = date.getSeconds();
		       	return year+"-"+cover(month)+"-"+cover(day)+" "+cover(hour)+":"+cover(minutes)+":"+cover(second);
			}
	
function cover(value){
	if(value.toString().length <=1){
			value = "0"+value;
	}
		return value;
	}

